﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace ERP.Migrations
{
    /// <inheritdoc />
    public partial class _061701 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "InterviewMenagementModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    PersonnelCode = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
                    PersonnelName = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
                    Phone = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
                    Sex = table.Column<int>(type: "integer", nullable: false),
                    DefiniteIntegral = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true),
                    DepartmentId = table.Column<int>(type: "integer", maxLength: 30, nullable: true),
                    PostWage = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true),
                    RolesId = table.Column<int>(type: "integer", maxLength: 30, nullable: true),
                    Interviewer = table.Column<int>(type: "integer", maxLength: 30, nullable: true),
                    InterviewFeedback = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true),
                    InterviewResult = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true),
                    InterviewsNumber = table.Column<int>(type: "integer", nullable: true),
                    InterviewsTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_InterviewMenagementModel", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "InterviewMenagementModel");
        }
    }
}
